-
-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(lint/useIsNan): add code fix action #125
Conversation
fce5ad2
to
5b52579
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! We're almost there, there are a couple of cases that need extra attention
crates/rome_js_analyze/tests/specs/correctness/useIsNan/invalid.js.snap
Outdated
Show resolved
Hide resolved
crates/rome_js_analyze/tests/specs/correctness/useIsNan/invalid.js.snap
Outdated
Show resolved
Hide resolved
eed2aaf
to
2064586
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a significant contribution! Thank you!
crates/rome_js_analyze/src/semantic_analyzers/correctness/use_is_nan.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great contribution!
Rebasing the PR should make the CI pass |
511e186
to
129d33a
Compare
129d33a
to
0c0b00e
Compare
Time to merge 🚀. Thanks!! |
Summary
Closes #96
Provide code fix for useIsNaN rule:
Should this rule support other operators like > < >= <=?
Test Plan